#ifndef FRMSERVERCHAT_H
#define FRMSERVERCHAT_H

#include <QTreeWidgetItem>
#include <QDialog>
#include "frmLogin.h"

namespace Ui {
class frmServerChat;
}

class frmServerChat : public QDialog
{
    Q_OBJECT

public:
    explicit frmServerChat(QWidget *parent = 0);
    void setForm(frmLogin* login);
    QString generateMD5(QString value);
    ~frmServerChat();

private slots:
    void on_cmdConnect_clicked();
    void isDisconnected();
    void on_twServers_itemChanged(QTreeWidgetItem *item, int column);
    void on_twServers_itemSelectionChanged();
    void on_twServers_itemDoubleClicked(QTreeWidgetItem *item, int column);
    void on_txtIP_returnPressed();

private:
    Ui::frmServerChat *ui;

protected:
    void closeEvent(QCloseEvent *event);
};

#endif // FRMSERVERCHAT_H
